package com.nowcoder.community.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nowcoder.community.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nowcoder.community.entity.PageEntity;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ChenJH
 * @since 2022-12-26
 */
public interface ICommentService extends IService<Comment> {
    Page findCommentsByEntity(int entityType, int entityId, PageEntity pageEntity);

    long findCommentCount(int entityType,int entityId);
    boolean addComment(Comment comment);
}
